using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityShiftsUpdateExtend
{
		public static Shifts ToUpdateEntity(this RequestShiftsDto dto)
		{
			return new Shifts
			{
				EShiftId = dto.shiftId,
				EEndTime = dto.endTime,
				ENumberOfTransactions = dto.numberOfTransactions,
				ETotalAmount = dto.totalAmount,
				ERemark = dto.remark,
			};
		}
	}
}
